const { Database, Model } = require('mongorito')

const db = new Database('localhost/aihuishou')

class Mobile extends Model {}

async function initDataBase(params) {
  await db.connect()
  db.register(Mobile)
}

module.exports = { Mobile, initDataBase }
